.register-container {
  background-color: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  min-height: 100vh;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #888 #f1f1f1;
}

.register-headers::-webkit-scrollbar {
  width: 4px;
}

.register-headers::-webkit-scrollbar-track {
  background: transparent;
}

.register-headers::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.register-headers:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
}

.register-headers {
  width: 300px;
  text-align: center;
  margin-top: 100px;
  min-height: 300px; /* 改为最小高度 */
  height: auto; /* 允许自动增长 */
  background-color: #fff;
  border-radius: 15px;
  padding: 20px; /* 添加内边距 */
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* 如果内容过多，添加滚动条 */
  max-height: 50vh;
}

.step-text {
  color: #666;
  font-size: 14px;
  text-align: center;
  display: block;
  color: #3f8cff;
  margin-top: 10px;
}

.register-headers h2 {
  color: #3f8cff;
  font-size: 16px;
  margin-bottom: 10px;
  margin-top: 20px;
}

.register-headers h4 {
  margin: 0;
}

.email-list {
  flex-grow: 1; /* 允许列表区域增长 */
  overflow-y: auto;
}

.email-input-group {
  position: relative;
}

.email-input-group input {
  width: 75%;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 20px;
  color: #bec2c9;
}

.email-input-group input:focus {
  outline: none;
  border-color: #3f8cff;
}

.remove-btn {
  position: absolute;
  right: 30px;
  top: 53%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
}
.remove-btn:hover {
  background-color: #fff;
}

.add-email-btn {
  background: none;
  border: none;
  color: #3f8cff;
  cursor: pointer;
  padding: 10px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  margin-left: 20px;
  width: 80px;
  background-color: #fff;
}

.add-email-btn:hover {
  opacity: 0.8;
  background-color: #fff;
}

.button-group {
  width: 270px;
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.btn-prev {
  color: #3f8cff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 25px;
}

.btn-next {
  background: #3f8cff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  cursor: pointer;
}

.btn-next:hover {
  background: #3273db;
}
.email-input-group {
  position: relative;
  margin-bottom: 16px;
}

.error-message {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
  position: absolute;
  bottom: -20px;
  left: 0;
}

input.error {
  border-color: #ff4d4f;
}

input.error:focus {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}